package com.me.study.javaBasic.collection;

import java.util.Random;

/**
 * 
 *
 * @author ME
 * @date   2019/7/8
 */
public class TestRandom {

    public static void main(String[] args) {
        Random rand = new Random();
        for (int i = 0; i < 20; i++) {
            System.out.println(rand.nextInt(2 - 1 + 1) + 1);
        }

    }
}
